﻿from sshclient import SSHProxy

with SSHProxy(infohost.ipaddr, int(infohost.port), infohost.username,
              infohost.passwd) as ssh:


class MyClass:
    def __init__(self):
        pass

    def func1(self):
        # do something
        print('a11')  # for example
        self.common_func()

    def func2(self):
        # do something
        self.func1()

    def common_func(self):
        pass

# info = MyClass()
# info.func2()
